/**
 * 
 */
package com.and.xmppsdk;

import org.drl.xmpp.TalkClient;
import org.drl.xmpp.TalkFactory;
import org.drl.xmpp.storage.DBApplication;

import android.app.Activity;
import android.app.Application;

/**
 * @author Administrator
 * 
 */
public final class XmppApplication extends DBApplication {

	private static TalkClient XMPPSDK;

	@Override
	public void onCreate() {
		super.onCreate();
		XMPPSDK = new TalkFactory(this);
	}

	public TalkClient getXmppSDK() {
		return XMPPSDK;
	}
	public static TalkClient getXmppSDK(Activity aty) {
		XmppApplication app = (XmppApplication) aty.getApplication();
		return app.getXmppSDK();
	}

}
